package dry.example.controller;

import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zc
 */
@CrossOrigin
@RestController
public class ReceiveController {

    /**
     * http://127.0.0.1:10005/send
     */
    @RequestMapping(value = "send")
    public Object send(String content) {
        System.out.println("-----start-----");
        System.out.println(content);
        System.out.println("-----end-----");
        return "ok";
    }

}
